]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
loginDialog: Tweak automatic scroll animation
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 25 Jul 2012 17:08:29 +0000 (19:08 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Tue, 31 Jul 2012 15:50:52 +0000 (17:50 +0200)
The current animation time of two seconds may result in some
confusion, as the reason of the behavior only becomes apprent
when the auto-activating item becomes visible; make the animation
a lot faster and ease it out a bit.

https://bugzilla.gnome.org/show_bug.cgi?id=660913

js/gdm/loginDialog.js

index 31c7208a27009fe1709c36f5c4065e5d79199f9b..54cf8142d0dd3cffcd4ae74bb9b30b35ba3cd1c4 100644 (file)
@@ -41,7 +41,7 @@ const ModalDialog = imports.ui.modalDialog;
 const Tweener = imports.ui.tweener;
 
 const _RESIZE_ANIMATION_TIME = 0.25;
-const _SCROLL_ANIMATION_TIME = 2.0;
+const _SCROLL_ANIMATION_TIME = 0.5;
 const _TIMED_LOGIN_IDLE_THRESHOLD = 5.0;
 const _LOGO_ICON_NAME_SIZE = 48;
 
@@ -400,7 +400,7 @@ const UserList = new Lang.Class({
         Tweener.addTween (adjustment,
                           { value: value,
                             time: _SCROLL_ANIMATION_TIME,
-                            transition: 'linear' });
+                            transition: 'easeOutQuad' });
     },
 
     jumpToItem: function(item) {